package com.example.map;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.map.MapUtil;
import org.junit.Test;

import java.time.LocalDate;
import java.time.LocalTime;
import java.util.HashMap;
import java.util.Map;

/**
 *
 *
 * @author qingyan 2021-11-16
 */
public class MapTest {

    @Test
    public void test(){
        Map<String, Object> map = new HashMap<>();
        map.put("1", null);
        map.put("2", null);
        Object orDefault = map.getOrDefault("1", "123123");
        System.out.println(orDefault);
        System.out.println(map.toString());
        LocalTime parse = LocalTime.parse("18:40");
        System.out.println(parse);
    }
}
